package entityDAOs;

import java.util.List;
import java.util.Set;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Map;

/**
 * A data access object (DAO) providing persistence and search support for Map
 * entities. Transaction control of the save(), update() and delete() operations
 * can directly support Spring container-managed transactions or they can be
 * augmented to handle user-managed Spring transactions. Each of these methods
 * provides additional information for how to configure it for the desired type
 * of transaction control.
 * 
 * @see entities.Map
 * @author MyEclipse Persistence Tools
 */

public class MapDAO extends BaseHibernateDAO<Map,java.lang.Integer> {
	private static final Logger log = LoggerFactory.getLogger(MapDAO.class);
	// property constants
	public static final String MAP_NAME = "mapName";
	public static final String LOCK_LEVEL = "lockLevel";

	public List<Map> findByMapName(Object mapName) {
		return findByProperty(MAP_NAME, mapName);
	}

	public List<Map> findByLockLevel(Object lockLevel) {
		return findByProperty(LOCK_LEVEL, lockLevel);
	}
}